package com.pshcp.domain.dto;

import com.framework.base.BaseDTO;
import com.pshcp.common.enums.NewsTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author auto generator
 * @since 2022-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="News对象", description="")
public class NewsDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID=1L;


    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "封面图片地址")
    private String coverImage;

    @ApiModelProperty(value = "日期")
    private Date date;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "阅读量")
    private Integer num;

    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * @see NewsTypeEnum
     */
    @ApiModelProperty(value = "类型 0:动态 1:科普文章")
    private Integer type;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态 0正常 1删除")
    private Integer status;

}
